package com.tencreat.common.enums;


import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 用户订单状态枚举
 * @author huangwei
 */
@Getter
public enum UserOrderStatus {

    /**
     * 用户订单状态枚举
     */
    USER_DELETED(100,"删除订单"),
    WAIT_PAY(101,"待支付"),
    CANCEL_PAY(102,"取消支付"),
    WAIT_RECEIVED(103,"待收货"),
    WAIT_EVALUATE(104,"待评价"),
    EVALUATED(105,"已评价"),
    OK(106,"已支付"),
    WAIT_USE(107,"待使用"),
    COMPLETE(108,"已完成");

    UserOrderStatus(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @EnumValue
    private final int value;
    @JsonValue
    private final String desc;

    /**
     * 单个枚举的展示
     */
    @Override
    public String toString() {
        return value + "-" + desc;
    }
}
